﻿using SD.Infrastructure.RepositoryBase;
using SlamDunk.MES.Domain.Entities.MaintenanceContext;
using SlamDunk.ValueObjects.Enums;
using System;
using System.Collections.Generic;

namespace SlamDunk.MES.Domain.IRepositories.Interfaces.MaintenanceContext
{
    /// <summary>
    /// 设备资产仓储接口
    /// </summary>
    public interface IEquipmentAssetRepository : IAggRootRepository<EquipmentAsset>
    {
        #region # 分页获取设备资产列表 —— ICollection<EquipmentAsset> FindByPage(string keywords...
        /// <summary>
        /// 分页获取设备资产列表
        /// </summary>
        /// <param name="keywords">关键字</param>
        /// <param name="equipmentId">设备Id</param>
        /// <param name="status">设备状态</param>
        /// <param name="facilityIds">工厂模型Id集</param>
        /// <param name="pageIndex">页码</param>
        /// <param name="pageSize">页容量</param>
        /// <param name="rowCount">总记录数</param>
        /// <param name="pageCount">总页数</param>
        /// <returns>设备资产列表</returns>
        ICollection<EquipmentAsset> FindByPage(string keywords, Guid? equipmentId, EquipmentStatus? status, IList<Guid> facilityIds, int pageIndex, int pageSize, out int rowCount, out int pageCount);
        #endregion
    }
}
